Repository navigation
Update dependency graphql-yoga to v6 - #242
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
renovate
Bot
force-pushed
the
renovate/graphql-yoga-6.x
branch
9 times, most recently
from
October 30, 2026 00:30
9efaa55 to
28516da
Compare
renovate
Bot
force-pushed
the
renovate/graphql-yoga-6.x
branch
8 times, most recently
from
November 6, 2026 19:29
6768d0b to
1c3640e
Compare
renovate
Bot
force-pushed
the
renovate/graphql-yoga-6.x
branch
7 times, most recently
from
November 15, 2026 06:34
8b4af37 to
939c398
Compare
renovate
Bot
force-pushed
the
renovate/graphql-yoga-6.x
branch
3 times, most recently
from
November 19, 2026 10:42
512706a to
3091746
Compare
renovate
Bot
force-pushed
the
renovate/graphql-yoga-6.x
branch
from
November 21, 2026 10:43
3091746 to
56c552f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.21.2→^6.0.0Release Notes
graphql-hive/graphql-yoga (graphql-yoga)
v6.1.1Compare Source
Patch Changes
#4664
ce73ba2Thanks @seckardt! -
allowedHeadersnow removes every unlistedheader when the request is a native
Request. Previously, deleting a header while iterating anative
Headersskipped the entry after each deleted one, so about every second unlisted headerin a row stayed on the request seen by resolvers and on the response.
3285ba5Thanks @enisdenjo! - The default parser and validation caches are
now also bounded by the total length of cached document strings (1 MiB), not only by entry count
and TTL. A parsed document can take a few hundred times more memory than its text, so previously
caching many large documents (including ones that fail validation) could exhaust the process
memory. Documents and parse errors whose source is larger than this limit are no longer cached,
and the least recently used entries are evicted to stay within it. Custom
documentCacheanderrorCacheimplementations are not affected.v6.1.0Compare Source
Minor Changes
#4647
cfd0092Thanks @egoodwinx! - Add support for the HTTP
QUERYmethod asdescribed in
graphql/graphql-over-http#411.
QUERYrequests carry the GraphQL params in the request body, exactly likePOST(
application/json,application/graphql+json,application/graphql, andapplication/x-www-form-urlencodedare all supported), but are treated as safe/read-only likeGET: sending a mutation overQUERYis rejected with a405 Method Not Allowedresponse, thesame way it already is for
GET.Patch Changes
#4650
045fc2fThanks @Shaurya55555! - Match the request
Content-Typemediatype case-insensitively and allow optional whitespace before its parameters, as required by
RFC 9110. A request sent with
Application/JSONorapplication/json ; charset=utf-8wasrejected with
415 Unsupported Media Type.#4658
38e9f1bThanks @egoodwinx! - dependencies updates:
@whatwg-node/promise-helpers@^2.0.2↗︎(from
^2.0.0, independencies)@whatwg-node/server@^0.13.3↗︎(from
^0.13.1, independencies)#4646
35501feThanks @mattkrick! - A schema factory function now works when
getEnvelopedis called outside of the request pipeline, for example bygraphql-ws. When thecontext passed to
getEnvelopedhas a Fetch APIRequestasrequest, the factory is calledwith that context instead of throwing "No schema found for this request", and it has to return the
schema synchronously there. The WebSocket recipes now pass the upgrade request as
request.#4656
807c7afThanks @mattkrick! - Mutations sent over a WebSocket no longer
fail with "Can only perform a mutation operation from a POST request." when the WebSocket server
passes the upgrade request to
getEnvelopedorgetResultForParams. The check now applies onlyto requests that Yoga's HTTP handler parsed.
Updated dependencies
[
38e9f1b,38e9f1b]:v6.0.1Compare Source
Patch Changes
#4634
d73f61cThanks @ardatan! - dependencies: bump
@whatwg-node/serverto^0.13.1so nativeRequestsubclasses (Next.jsNextRequest, including the App RouterproxyNextRequestProxy) are classified as the platform Fetch API. The body-size limiter nolonger throws a cross-realm
TypeError/ 500 on those requests; oversized bodies stillreturn 413.
See #4633 and
ardatan/whatwg-node#3717.
v6.0.0Compare Source
Major Changes
#4575
862447aThanks @egoodwinx! - Use
@graphql-hive/loggerand add correlated, per-requestlogging (closes #4048)
Every request now gets its own logger, available as
context.log(andserverContext.loginplugin hooks), tagged with a
requestId. Everything logged while handling a request can becorrelated by that id.
The request id is taken from the host integration if it already assigned one (e.g. Fastify's
request.id), otherwise from the incomingx-request-idheader, otherwise generated. It is alsosent back in the
x-request-idresponse header. Configure it with the newrequestIdoption:Pass
requestId: falseto disable it.At the
infolevel, a single "Request processed" line is logged per request with the method,path, operation name and type, response status, error count and duration. At the
debuglevel,more details about request processing are logged.
Masked errors are now logged with the request's logger, so they can be traced back to the request
that caused them. Custom
maskErrorfunctions receive the request's context as an optional fourthargument.
The
@envelop/newrelic,@envelop/auth0,@envelop/resource-limitations,@envelop/statsd,@envelop/graphql-jit,@envelop/response-cacheand@envelop/response-cache-cloudflare-kvplugins accept a new
logoption for their own messages, instead of always writing to theconsole.
@envelop/response-cache'sshouldCacheResultnow also receives the GraphQLcontext.Breaking Changes
@graphql-yoga/loggerpackage has been removed.graphql-yogare-exportsLogger,MemoryLogWriterandLogLevelfrom@graphql-hive/loggerinstead.createLoggerand theYogaLoggertype are no longer exported. Usenew Logger(options)instead.
loggingoption now takesboolean | Logger | LogLevel, whereLoggeris the one from@graphql-hive/logger.yoga.loggerhas been renamed toyoga.log.loggeroption ofuseGraphiQLanduseHealthCheckhas been removed. They now log throughthe request's logger.
@graphql-yoga/nestjsnow logs through Nest'sLoggerby default instead of not logging atall. Pass
logging: falseto keep the previous behaviour.logging: trueon Fastify no longerlogs through Fastify's logger, pass it explicitly instead (see below).
@envelop/apollo-federation,@envelop/auth0,@envelop/graphql-jit,@envelop/newrelic,@envelop/resource-limitations,@envelop/response-cache,@envelop/response-cache-cloudflare-kvand@envelop/statsdnow have a peer dependency on@graphql-hive/loggerthat you must install.@envelop/apollo-federation'sloggeroption now expects aLoggerfrom@graphql-hive/loggerand defaults tonew Logger()instead ofconsole.Migration
Create loggers with
Logger:Use
loginstead ofloggeron the Yoga instance:const plugin = { onYogaInit({ yoga }) { - yoga.logger.info('ready'); + yoga.log.info('ready'); }, };Prefer the request-scoped logger inside resolvers and plugin hooks so the logs carry the request
id:
If you use any of the
@envelop/*plugins listed above, install the logger:If you depended on
@graphql-yoga/loggerdirectly, switch to@graphql-hive/logger:To keep logging through Fastify's logger in
@graphql-yoga/nestjs:79b0e8bThanks @egoodwinx! - ### Breaking Changes
Future releases will only support Node >=22.
supported.
Enforcing this limit streams the body through a byte counter, making POST body parsing
asynchronous even for an in-memory body. As a result,
yoga.fetch()can return a Promise whereit previously returned a synchronous Response, even when all resolvers and plugins are
synchronous.
Migration
If you're on Node 18/20, upgrade to Node 22 or later before upgrading this package.
If you're on graphql 14/15, upgrade to graphql 16 or 17 first.
Await
yoga.fetch()and response body parsing instead of relying on synchronous results. SetmaxRequestBodySize: falseincreateYogato disable the body-size limit and preservesynchronous parsing for in-memory bodies, but only if you enforce an appropriate request-body
limit elsewhere.
#4623
be89d05Thanks @ardatan! - ### Dependencies
@graphql-tools/utilsto^13.1.1,@graphql-tools/schemato^11.0.0, and@graphql-tools/executorto^4.1.2.Incremental delivery
Yoga maps the GraphQL HTTP
Acceptheader throughINCREMENTAL_DELIVERY_SPECSfrom@graphql-tools/utilsonto executorincrementalSpec.multipart/mixed;incrementalSpec=v0.2runs the v0.2 payload format and echoes that spec on
Content-Type.multipart/mixed;deferSpec=20220824or baremultipart/mixedstays on v0.1. An unsupportedincremental spec yields 406.
A later incremental spec is a graphql-tools table row plus an executor publisher. Yoga, Hive
Gateway, and HTTP executors pick it up by bumping
@graphql-tools/utils/@graphql-tools/executor.Breaking Changes
createGraphQLErroris removed. Usenew GraphQLError(message, options)fromgraphql. Toattach Yoga's experimental schema coordinate, use
withSchemaCoordinate(error, coordinate)andread with
getSchemaCoordinatefrom@graphql-tools/utils.mapMaybePromiseis removed (was exported from Yoga /@envelop/core). UsehandleMaybePromisefrom@whatwg-node/promise-helpers.getSchemaCoordinate->@graphql-tools/utilsmergeSchemas->@graphql-tools/schemaDisposableSymbols->@whatwg-node/servermapAsyncIterator/isPromise/fakePromise/handleMaybePromise/MaybePromise->@whatwg-node/promise-helpers@envelop/coreutilsno longer re-exportsmapAsyncIteratororisPromise. Import from@whatwg-node/promise-helpers.asGetArgumentValuesVariables/coerceGetVariableValuesResultfrom@graphql-tools/utilsfor GraphQL 16/17
VariableValuescompatibility.Migration
79b0e8bThanks @egoodwinx! - ### Dependencies
@whatwg-node/serverto^0.13.0,@whatwg-node/fetchto^0.12.0, and@whatwg-node/promise-helpersto^2.0.0.and swap in the native TransformStream when the incoming request already has a native
ReadableStream body — piping it through the ponyfill TransformStream throws since they're
different realms. Thread an optional
fetchAPIparam through handle/parseRequest/getResultForParams so callers can override which fetchAPI (native vs ponyfill) the rest of the
pipeline uses.
Requestinstances automatically use the native Fetch API(
pickRightFetchAPI), so Next.js no longer needsfetchAPI: { Response }.Breaking Changes
engines.nodeis now>=22.15.0(aligned with whatwg-node 0.12+/0.13).@envelop/coreno longer exportsmapMaybePromise(removed upstream in@whatwg-node/promise-helpersv2). UsehandleMaybePromise(() => value, ...)instead.@whatwg-node/fetchno longer exportscrypto; use the platformcryptoglobal.TextEncoderstill comes from
fetchAPIwhere hashing goes through Yoga’s FetchAPI.Patch Changes
#4622
5334079Thanks @ardatan! - Stop swapping in
globalThis.TransformStreaminside the request body-size limiter.
@whatwg-node/serveralready passes the request-appropriateFetch API (native vs ponyfill) into Yoga as the handler's third argument, so
onRequestParsereceives a realm-compatible
TransformStreamwithout an ad-hoc guard.Updated dependencies
[
862447a,79b0e8b,be89d05,79b0e8b]:Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.